package com.youtui.manager.session;

import java.io.Serializable;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * session接口
 * 
 * @author win7
 *
 */
public interface SessionService {

	/** session放值 */
	public void setAttribute(HttpServletRequest request, HttpServletResponse response, String name, Serializable value);

	/** session取值 */
	public Serializable getAttribute(HttpServletRequest request, HttpServletResponse response, String name);

	/** 登出 */
	public void logout(HttpServletRequest request, HttpServletResponse response);

	/** 得到sessionId */
	public String getSessionId(HttpServletRequest request, HttpServletResponse response);

}
